cmake_minimum_required(VERSION 3.10)
project(MyProjec)
find_package(CUDA REQUIRED)
find_package(OpenCV REQUIRED)

include_directories(${CUDA_INCLUDE_DIRS})
include_directories(${OpenCV_INCLUDE_DIRS})

# 添加可执行文件
cuda_add_executable(my_executable main.cpp /media/nvidia/cuda_test/toe_aimbot_2023/detector/jetson_orin/mycuda/preprocess.cu)

# 链接CUDA库
target_link_libraries(my_executable ${CUDA_LIBRARIES} ${OpenCV_LIBS})
